<?php
/* @var $this ProceduresController */
/* @var $model Procedures */
/* @var $form CActiveForm */
?>

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>



	<div class="row">
		<?php echo $form->label($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>200)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'database_id'); ?>
		
		<select name="Procedures[database_id]"  id="Procedures_database_id" >
			<option value="" >---- ALL ------</option>
			<?php
			$database = Databases::model()->findAll();
			foreach($database as $key=>$d){
			?>
				<option value="<?php echo $d->name;?>" >
					<?php echo $d->name;?>
				</option>
			<?php
			}
			
			?>
		</select>
	</div>

	<div class="row">
		<?php echo $form->label($model,'status'); ?>
		
		<?php echo $form->dropDownList($model, 'status',array(0=>"OK",1=>"NOT OK",2=>"Missing",3=>"NOT USE"),array('empty' => '(Select a Status)'));?>
	</div>	
	<div class="row compare">
		<?php echo $form->label($model,'compare'); ?>
		
		<?php echo $form->dropDownList($model, 'compare',array(10=>"COMPARE",1=>"COMPARE (Modified)",2=>"COMPARE (Added)"),array('empty' => '(Select a compare)'));?>
	</div>
	<div class="row">
		<label for="Procedures_name">Issue</label>		
		<input size="60" maxlength="200" name="Procedures[issue]" id="Procedures_issue" type="checkbox">	</div>
	<div class="row buttons">
		<?php echo CHtml::submitButton('Search'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->
<style>
.compare{width:220px}
</style>